﻿@model WeProjectsModel.News

@{
    ViewBag.Title = "Delete";
    int usrId = int.Parse(Membership.GetUser().ProviderUserKey.ToString());
    //if ((Model.Project.OwnerID != usrId || Model.MemberID != usrId) && !Roles.IsUserInRole("sysadmin"))
    //{
    //    Response.Write("您没有权限操作!");
    //    Response.End();
    //}
}
@*@Html.Partial("../project/_projectMenu2")*@
<h2>@Model.Project.Title > 删除新闻</h2>
<p class="buttonIn">
    @Html.ActionLink("返回列表", "Index")
</p>

<div class="bs-callout bs-callout-danger">
    <h4>确认删除此新闻？</h4>
    <p>
        标题：@Html.DisplayFor(model => model.Title)
    </p>
        <p>
            发布人：@Html.DisplayFor(model => model.Author.DisplayName)
        </p>
        <p>
            发布时间：@Html.DisplayFor(model => model.PublishDate)
        </p>
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()
        <p>
            <input type="submit" value="Delete" class="btn btn-danger width-20p" />
        </p>
    }
</div>